#pragma once
#include "sprite.h"
#include <string>

class TextField :
	public Sprite
{
public:
	TextField(void);
	TextField(BITMAP *_dest, signed int _x=0, signed int _y=0, unsigned int _width=0, unsigned int _height=0, bool _alphaBlended = true);
	virtual ~TextField(void);

	char text[250];
	int color;
	
	void draw();
	void setText(char *t){ strcpy(text, t); };
	void setText(unsigned int i){sprintf(text, "%i", i); };
	void setText(std::string s){ strcpy(text, s.c_str()); };
	void setColor(int r, int g, int b){ color = makecol(r, g, b); };
};
